<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<jsp:include page="header.jsp"></jsp:include>
	<body>
		<div id="main-content">

			<h2>
				欢迎 ${sessionScope.user.username}
			</h2>

			<div class="clear"></div>

			<div class="content-box">

				<div class="content-box-header">
					<h3>
						系统配置
					</h3>

					<div class="clear"></div>
				</div>
				
				<div class="content-box-content">
					<div class="tab-content default-tab" id="tab1">
						
						<div class="notification attention png_bg">
							<a href="#" class="close"><img
									src="resources/images/icons/cross_grey_small.png"
									title="Close this notification" alt="close" />
							</a>
							<div>
								<s:debug></s:debug>
							</div>
						</div>
						<form action="setting_add.action" method="post">
							<fieldset>
								<input type="hidden" name="id"
									value="1" />
								<p>
									<label>
										系统名称：
									</label>
									<input class="text-input small-input" type="text" id="sysname"
										name="sysname" value="${requestScope.setting.sysname}" />
									<span class="input-notification success png_bg">Successful
										message</span>
								</p>
								<p>
									<label>
										系统邮箱：
									</label>
									<input class="text-input small-input" type="text" id="email"
										name="email" value="${requestScope.setting.email}" />
									<span class="input-notification error png_bg">Error
										message</span>
								</p>
								<p>
									<label>
										邮箱密码：
									</label>
									<input class="text-input small-input" type="text"
										id="emailPassword" name="emailPassword"
										value="${requestScope.setting.emailPassword}" />
								</p>
								<p>
									<label>
										SMTP服务器：
									</label>
									<input class="text-input small-input" type="text" id="smtp"
										name="smtp" value="${requestScope.setting.smtp}" />
								</p>
								<p>
									<label>
										系统状态
									</label>
									<input type="radio" name="status" value="2"
										<s:if test="#requestScope.setting.status==2">checked</s:if> />
									<s:text name="#setting.status"></s:text>
									开启
									<br />
									<input type="radio" name="status" value="1"
										<s:if test="#requestScope.setting.status==1">checked</s:if> />
									关闭
								</p>


								<p>
									<input class="button" type="submit" value="保存" id="dosubmit" />
								</p>
							</fieldset>
							<div class="clear"></div>
							
						</form>

					</div>

					<!-- End #tab2 -->
				</div>
				
			</div>

			<div id="footer">
				<small> 
					&#169; Copyright 2011 黄淮学院 | 信息工程学校 | <a href="#">Top</a> </small>
			</div>
			
		</div>
	</body>
</html>
